# -*- encoding: utf-8 -*-
# -*- encoding: utf-8 -*-

from odoo import models, fields, api, _
from odoo.addons import base_cw
from odoo.exceptions import UserError
from odoo.tools.float_utils import float_round, float_compare


class account_cash_monthly_settle_wizard(models.TransientModel):
    _name = 'account.cash_monthly.settle.wizard'
    _description = u'日记账报表处理'

    period_id = fields.Many2one('account.period', u'期别', ondelete="restrict")


    def action_confirm(self):
        self.ensure_one()
        if self.period_id:
            self._cr.execute("""
                    select account_cash_monthly_settle(%s,%s,%s);
            """ % (self.period_id.id, self.period_id.pre_period_id.id, self._uid))